<?php
class otable {
	
	public $tblmb = 'members';
	public $tblmf = 'memberfield';
	
	/**
	 * 为各表加上前缀.用于单服务器分库后的单连接.缺陷: 一个脚本中会多次执行此方法
	 */
	public function __construct(){
		$class_vars = get_class_vars( 'otable');
		
		foreach ($class_vars as $key => $value){
			$this->$key = CoreFactory::$config['db_name'].'.'.CoreFactory::$config['db_prefix'].$value;
		}
	}
	
}